<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en" class="no-js">
<!--<![endif]-->
<!-- BEGIN HEAD -->
<head>
<meta charset="utf-8" />
<title>修改密码</title>
<?php include($this->c['_homes']['_viewsHome'].'/_global/_head.php');?>
</head>
<!-- BEGIN BODY -->
<body class="page-header-fixed page-sidebar-fixed">
<!-- BEGIN HEADER -->
<?php include($this->c['_homes']['_viewsHome'].'/_global/head.php');?>
<!-- END HEADER -->
<div class="clearfix"></div>
<!-- BEGIN CONTAINER -->
<div class="page-container" > 
  <!-- BEGIN HORIZONTAL MENU PAGE SIDEBAR1 -->
  <?php include($this->c['_homes']['_viewsHome'].'/_global/menu.php');?>
  <!-- END BEGIN HORIZONTAL MENU PAGE SIDEBAR --> 
  <!-- BEGIN PAGE -->
  <div class="page-content"> 
    <!-- BEGIN PAGE HEADER-->
    <div class="row">
      <div class="col-md-12"> 
        <!-- BEGIN PAGE TITLE & BREADCRUMB-->
        <h3 class="page-title"> 修改密码 </h3>
        <ul class="page-breadcrumb breadcrumb">
          <li> <i class="icon-home"></i> <a href="/manage">后台</a> <i class="icon-angle-right"></i> </li>
          <li>修改密码</li>
        </ul>
        <!-- END PAGE TITLE & BREADCRUMB--> 
      </div>
    </div>
    <!-- END PAGE HEADER--> 
    <!-- BEGIN PAGE CONTENT-->
    
    <div class="row">
      <div class="col-md-6"> 
        <!-- BEGIN SAMPLE FORM PORTLET-->
        <div class="portlet box blue">
          <div class="portlet-title">
            <div class="caption"> <i class="icon-reorder"></i> 设置密码 </div>
            <div class="tools"> <a href="" class="collapse"></a> </div>
          </div>
          <div class="portlet-body form">
            <form method="post" action="/manage/savepassword" onsubmit="return checkfrm();">
              <input type="hidden" name="act" value="mod" />
              <div class="form-body">
                <div class="form-group">
                  <label for="_password">当前登录密码</label>
                  <div class="input-group"> <span class="input-group-addon"><i class="icon-lock"></i></span>
                    <input type="password" class="form-control" id="cpass" name="cur_pass">
                  </div>
                  <span class="help-block">请输入当前登录密码</span> </div>
                <hr>
                </hr>
                <div class="form-group">
                  <label for="_password">新密码</label>
                  <div class="input-group"> <span class="input-group-addon"><i class="icon-lock"></i></span>
                    <input type="password" class="form-control" id="npass" maxlength="20" name="new_pass">
                  </div>
                  <span class="help-block">6~20个字符以内，区分大小写</span> </div>
                <hr>
                </hr>
                <div class="form-group">
                  <label for="_password">重复新密码</label>
                  <div class="input-group"> <span class="input-group-addon"><i class="icon-lock"></i></span>
                    <input type="password" class="form-control" id="npass2" maxlength="20" name="new_pass2">
                  </div>
                  <span class="help-block">请再次输入新密码</span> </div>
                              </div>
              <div class="form-actions">
                <input type="submit" class="btn blue" value="提 交">
              </div>
            </form>
          </div>
        </div>
        <!-- END SAMPLE FORM PORTLET--> 
        
      </div>
    </div>
    <!-- END PAGE CONTENT--> 
  </div>
  <!-- END PAGE --> 
</div>
<!-- END CONTAINER -->
<?php include($this->c['_homes']['_viewsHome'].'/_global/_footer.php');?>
<script>
	jQuery(document).ready(function() {    
	   App.init();
	});
</script> 
<script type="text/javascript">
function checkfrm(){
var pass1 = document.getElementById("cpass");
var pass = document.getElementById("npass");
var pass2 = document.getElementById("npass2");	
	if(pass1.value==''){
	alert("请输入当前登录密码");
	pass1.focus();
	return false;
	}
	if(pass.value.length<6){
	alert("请输入新密码，且长度不能小于6个字符");
	pass.focus();
	return false;
	}	
	if(pass2.value != pass.value){
	alert("两次输入的密码不相符，请重新输入");
	pass2.focus();
	return false;
	}
}
</script> 
<!-- END JAVASCRIPTS -->
</body>
<!-- END BODY -->
</html>